<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SettingPopupSwitch extends Model
{
    protected $table = 'setting_popup_switchs';

    const SWITCH_ONE = 1;  //首页安全提醒弹窗

    const SWITCH_TWO = 2; //首页安全提醒弹窗 按钮

    const SWITCH_THREE = 3; //实名认证完成弹窗


    public static function switchType(){
        return $data = [
            self::SWITCH_ONE    => ['desc' => '首页安全提醒弹窗开关','parent_id' => 0],
            self::SWITCH_TWO    => ['desc' => '首页安全提醒弹窗->按钮开关','parent_id' => self::SWITCH_ONE],
            self::SWITCH_THREE  => ['desc' => '实名认证完成弹窗开关','parent_id' => 0],
        ];
    }
}

